package com.yqd.d4_polymorphism.demo1;

public class UsbFan implements Usb {
    @Override
    public void serviceForUsb2() {
        System.out.println("规范协议:" + Usb2.DEF + "设备接通usb2.0接口，风扇运行正常");
    }

    @Override
    public void serviceForUsb3() {
        System.out.println("规范协议:" + Usb3.DEF + "设备接通usb3.0接口，风扇运行正常");
    }

    @Override
    public void serviceForUsb4() {
        System.out.println("规范协议:" + Usb4.DEF + "设备接通usb4.0接口，风扇运行正常");
    }
}
